flow diagram for square equation